
/*
 * book: Head first java
 * page: 48
 * done by: me
 * */

public class RandomWords {

		public static void main(String[] args) {
		
			String[] Words1 = {"first", "second","therd"};
			String[] Words2 = {"first", "second","therd"};
			String[] Words3 = {"first", "second","therd"};
		
			int wleng1 = Words1.length;
			int wleng2 = Words2.length;
			int wleng3 = Words3.length;
			
			int rand1 = (int) (Math.random() * wleng1);
			int rand2 = (int) (Math.random() * wleng2);
			int rand3 = (int) (Math.random() * wleng3);
		
			
			int x = (int) 23.6;
			int y = (int) (4 * Math.random());
			
			System.out.println(x + "\n" + y + rand1 + rand2 + rand3);
		}



}
